<div class="page-bar">
    <div class="page-bar-desc">
        {$pobj['pn']} / {$pobj['max']} &nbsp;页&nbsp;|&nbsp;
        {$pobj['psize']} / {$pobj['total']}&nbsp;条&nbsp;|&nbsp;
    </div>
<a href="{url:$pobj['url'] . '-'.$pobj['var'].'-%d' , 1 }" class="page-bar-a {$pobj['pn'] == 1 ? 'active' : ''}"> 1 </a>
{if $pobj['max'] > 1}
    {foreach $pobj['link'] $k $v}
        <a href="{if is_numeric($v)}{url:$pobj['url'] . '-'.$pobj['var'].'-%d' , $v }{else}javascript:void(0);{/if}" class="page-bar-a {$pobj['pn'] == $v ? 'active' : ''}"> {$v} </a>
    {/foreach}
{/if}
{if $pobj['max'] > 1}
<a href="{url:$pobj['url'] . '-'.$pobj['var'].'-%d' , $pobj['max'] }" class="page-bar-a {$pobj['pn'] == $pobj['max'] ? 'active' : ''}"> {$pobj['max']} </a>
{/if}

    <div class="page-bar-desc">
    {if $pobj['max'] > 5 && $pobj['max'] < 50}
     &nbsp;转到 第
        <select id ="purl" style="width:50px; height:18px;font-size:10px;" onchange="location.href=this.value;">
        {for $i in range(1,intval($pobj['max']+1))}
            {if intval($i) == intval($pobj['pn']) }
                <option selected value="{url:$pobj['url'] . '-'.$pobj['var'].'-%d' , $i }">{$i}</option>
            {else}
                <option value="{url:$pobj['url'] . '-'.$pobj['var'].'-%d' , $i }">{$i}</option>
            {/if}
        {/for}
        </select> 页 
    {elseif $pobj['max'] > 50}
     &nbsp;转到 第
        <input type="text" class="page-bar-input" value="{$pobj['pn']}" onblur="location.href='{url:($pobj['url'].'-'.$pobj['var'].'-|false')}' + this.value;" />&nbsp;页&nbsp;
    {/if}
    </div>
</div>